package com.weipeep.sys.domain;

import java.text.DecimalFormat;

public class StaticDTO {
    private String schoolName;
    private int success=0;
    private int total=0;
    private String tongji;

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getTongji() {
        float num= ((float)success/total)*100;
        DecimalFormat df = new DecimalFormat("0.00");//格式化小数
        String s = df.format(num);//返回的是String类型
        return s+"%";
    }

    public void setTongji(String tongji) {
        this.tongji = tongji;
    }

}
